import request from '@/utils/request'

// 查询宣讲会列表
export function listLecture(query) {
  return request({
    url: '/zua/lecture/list',
    method: 'get',
    params: query
  })
}

// 查询宣讲会详细
export function getLecture(lectureId) {
  return request({
    url: '/zua/lecture/' + lectureId,
    method: 'get'
  })
}

// 新增宣讲会
export function addLecture(data) {
  return request({
    url: '/zua/lecture',
    method: 'post',
    data: data
  })
}

// 修改宣讲会
export function updateLecture(data) {
  return request({
    url: '/zua/lecture',
    method: 'put',
    data: data
  })
}

// 删除宣讲会
export function delLecture(lectureId) {
  return request({
    url: '/zua/lecture/' + lectureId,
    method: 'delete'
  })
}

// 导出宣讲会
export function exportLecture(query) {
  return request({
    url: '/zua/lecture/export',
    method: 'get',
    params: query
  })
}